<%@ Page Title="Students" Language="C#" MasterPageFile="~/masterpage.master" AutoEventWireup="true" CodeFile="students.aspx.cs" Inherits="Admin_students" %>

<%@ Register src="ucLetters.ascx" tagname="ucLetters" tagprefix="uc2" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <link rel="stylesheet" type="text/css" href="css/admin.css" />
  <script language="javascript" type="text/javascript">
	  var controldivname = 'ctl00_ContentPlaceHolder1_rgStudents';
  </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table width="95%">
<tr>

<td colspan="2">
		<div class="wrap4"><div class="abcd">

	<table width= "100%"><tr>
	<td align="left" valign="middle" width="300"><asp:Label ID="Label1" runat="server" Text="Last Name:"></asp:Label>
			<asp:TextBox ID="tbName" runat="server"></asp:TextBox>
			<asp:ImageButton ID="bGo"  runat="server" ImageUrl="images/go_button2.png" 
			Text="Go" onclick="bGo_Click" style="height: 17px" /></td>
		<td align="center" style="width:500px;">
			
		<uc2:ucLetters ID="ucLetters1" Format="students.aspx?letter={0}" runat="server" /></td>
		
		<td align="right"><asp:ImageButton ImageUrl="Images/excel_icon2.png" ID="lbExport" runat="server" 
		onclick="lbExport_Click" ToolTip="Export to Excel" ></asp:ImageButton></td>
		</tr>
	</table>
	
<div class="clr"></div>
</div></div>
<div class="clr"></div>
</td>
</tr>
</table>

<table style="width:900px;">
<tr>
<td align="left">

<telerik:radscriptmanager ID="RadScriptManager1" Runat="server">
	</telerik:radscriptmanager>
<telerik:radgrid ID="rgStudents" runat="server" AllowPaging="True" 
		AllowSorting="True" Height="400px" Width="100%" 
	 CssClass="stats"	onsortcommand="rgStudents_SortCommand" 
		onpageindexchanged="rgStudents_PageIndexChanged"  GridLines="None" 
		AllowAutomaticUpdates="True" AutoGenerateColumns="False"
		>
		
		<HeaderStyle  Font-Bold="True" Font-Underline="False" Font-Size="9" HorizontalAlign="Center"  />
<HeaderContextMenu>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</HeaderContextMenu>

<FilterMenu>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>

            <ItemStyle BackColor="Silver" />
	<AlternatingItemStyle BackColor="LightGray" />

            <MasterTableView>
				<Columns>
				
				<telerik:GridHyperLinkColumn  DataNavigateUrlFields="STUDENT_ID" UniqueName="STUDENT_ID" HeaderStyle-Width="60"
			DataNavigateUrlFormatString="profile.aspx?studentId={0}"   DataTextField="NO" SortExpression="NO" HeaderText="No" >
			<ItemStyle  HorizontalAlign="Center"/>
			</telerik:GridHyperLinkColumn>
			<telerik:GridHyperLinkColumn DataNavigateUrlFields="STUDENT_ID" UniqueName="STUDENT_ID1"  HeaderStyle-Width="80"
			DataNavigateUrlFormatString="studententry.aspx?studentId={0}" DataTextField="FIRST_NAME" SortExpression="FIRST_NAME" HeaderText="First" />
			<telerik:GridHyperLinkColumn DataNavigateUrlFields="STUDENT_ID"  UniqueName="STUDENT_ID2"  HeaderStyle-Width="80"
			DataNavigateUrlFormatString="studententry.aspx?studentId={0}" DataTextField="LAST_NAME" SortExpression="LAST_NAME" HeaderText="Last" />
			<telerik:GridBoundColumn  DataField="GRADE_LEVEL" UniqueName="GRADE_LEVEL" HeaderStyle-Width="50"
                SortExpression="GRADE_LEVEL" HeaderText="Grade">
			<ItemStyle  HorizontalAlign="Center"/>
			</telerik:GridBoundColumn >
			<telerik:GridBoundColumn DataField="EMAIL" SortExpression="EMAIL" HeaderStyle-Width="110"
                HeaderText="Email" UniqueName="Email"/>
			<telerik:GridBoundColumn DataField="ADDRESS" HeaderStyle-Width="110"
                SortExpression="ADDRESS" HeaderText="Address" UniqueName="Address"/>
			<telerik:GridBoundColumn DataField="CITY" HeaderStyle-Width="80"
                SortExpression="CITY" HeaderText="City" UniqueName="City"/>
			<telerik:GridBoundColumn DataField="MOTHER" HeaderStyle-Width="80"
                SortExpression="MOTHER" HeaderText="Mother" UniqueName="Mother"/>
			<telerik:GridBoundColumn DataField="FATHER" HeaderStyle-Width="80"
                SortExpression="FATHER" HeaderText="Father" UniqueName="Father"/>
			<telerik:GridBoundColumn DataField="GUARDIAN_EMAIL" HeaderStyle-Width="110"
                SortExpression="GUARDIAN_EMAIL" HeaderText="Guardian Email"  UniqueName="GUARDIAN_EMAIL"/>
		</Columns>
	</MasterTableView>

            <ClientSettings>
                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>
            </ClientSettings>

</telerik:radgrid>


	</td>
</tr>
</table>
	

</asp:Content>

